<%--
  Created by IntelliJ IDEA.
  User: 52203
  Date: 2018/12/27
  Time: 11:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>顾客注册</title>
    <base href="<%=request.getContextPath()%>/"/>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@include file="../../page/layUI.jsp"%>
    <script type="text/javascript" src="../../js/jquery-2.1.0.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#loginName").blur(function () {
                var loginName=$("#loginName").val();
                $.post("/ServletCustomer",{"action":"ExistsLoginName","loginName":loginName},callBackExistsLoginName,"text");
                function callBackExistsLoginName(data) {
                    //alert(data);
                    if(data=="true"){
                        $("#checkName").html("登录用户名已经存在！");
                    }else {
                        $("#checkName").html("");
                    }
                }
            });
        })
    </script>
</head>

<body>
    <form action="/ServletCustomer?action=register&ComeFrom=cusAdd" method="post" enctype="multipart/form-data"><br><br><br><br>
        姓名<input type="text"  name="C_name" ><br><br>
        登录账号<input type="text" id="loginName"  name="C_loginName"><label id="checkName" style="font-size: 6px;"></label><br><br>
        登录密码<input type="text" name="C_pwd"><br><br>
        Email<input type="text"  name="C_email"><br><br>
        性别<input type="radio" value="男" name="C_sex" checked>男
        <input type="radio" value="女" name="C_sex" >女<br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;头像<input type="file"  name="cusPhoto"><br><br>
        爱好<input type="text"  name="C_hobby"><br><br>
        证件号<input type="text" name="C_code"><br><br>
        生日<input type="date"  name="C_birthday"><br><br>
        <input type="submit" value="注册" class="layui-btn"><br><br>
    </form>
</body>
</html>
